/**
 * 棋子js
 */
cc.Class({
    extends: cc.Component,

    properties: {
        imageAtlas: cc.SpriteAtlas,
        image: cc.Sprite,
    },

    // LIFE-CYCLE CALLBACKS:
    init(option) {

        this.image.spriteFrame = this.imageAtlas.getSpriteFrame(`${option.type}-${option.playerType}`);

    },
    // onLoad () {},

    start() {

    },

    // update (dt) {},
});
